<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/tabs.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<%@ include file="/commons/dateTime.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>通知/催缴单 主页面</title>
<link href="${ctx}/styles/listTable.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/styles/grid.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>

<script type="text/javascript">
	var currenNoteId = null;
	var currentPeriodId = null;
	var currentHouseNumber = null;
	var currentHouseId = null;
	var currentStatus = null;

	var totalRows = 0; //总行数
	var orderStr = null; //排序字段

	//查询对象
	var SearchObj = {buildingId:"",
					 houseName:"",
					 isVirtualHouse:"",
					 periodId:"",
					 requisitionNum:"",
					 validity:"",
					 getSearchStr:function(){
					 	var params = SearchObj.buildingId != "" ? "&buildingId=" + SearchObj.buildingId : "";
						params += SearchObj.houseName != "" ? "&houseName=" + SearchObj.houseName : "";
						params += SearchObj.isVirtualHouse != "" ? "&isVirtualHouse=" + SearchObj.isVirtualHouse: "" ;
					 	params += SearchObj.periodId != "" ? "&periodId=" + SearchObj.periodId : "";
					 	params += SearchObj.requisitionNum != "" ? "&requisitionNum=" + SearchObj.requisitionNum : "";
					 	params += SearchObj.validity != "" ? "&validity=" + SearchObj.validity : "";
					 	return params;
					 },
					 setSearch:function(buildingId,houseName,isVirtualHouse,periodId,requisitionNum,validity){
					 	SearchObj.buildingId = buildingId;
					 	SearchObj.houseName = encodeURI(encodeURI(houseName));
					 	SearchObj.isVirtualHouse = isVirtualHouse;
					 	SearchObj.periodId = periodId;
					 	SearchObj.requisitionNum = requisitionNum;
					 	SearchObj.validity = validity;
					 }};

	/**
	 * 打开收费周期页面
	 */
   function showCycleForward(){
   		var url = "${ctx}/charge_chargeCycleForwardAction.do?method=chargeCycleForwardSmall";
		top.windowOpen(url, "chargeCycleForward", "", 340, 900);
   }
   /**
    *  收费周期跳转页面方法
    */
   function cycleForward(url){
   		window.location.href=url;
   }
	/**
	 *  查询方法
	 */
	function search(){
		var param = SearchObj.getSearchStr();
		var url = "${ctx}/charge_noteAction.do?method=list&"+param;
		window.frames("noteList").document.location.href = url;
	}

	/**
	 *  生成通知单
	 */
	function openBuildNote(){
		AskConfirm("${key.charge_note_main_affirm}？","main","buildNote");
	}
	function buildNote(){
		var url = "${ctx}/charge_noteAction.do?method=buildNotes";
		showLoading("正在生成...");//显示图片
		sendAjaxRequest(url,null,function(result){
			hiddenLoading();
			ajaxSubmitException(result.responseText);
			if(result.responseText == "true"){  //成功生成,则提示用户已成功生成通知单  同时改变按钮状态
				SuccessAlert("${key.charge_note_main_build_success}");
			}else if(result.responseText == "false"){
				Alert("${key.charge_note_main_build_faild}");
			}
			flustList();
		});
	}

	/**
	 * 重新生成
	 */
	function openBuildAnew(){
		var url = "${ctx}/charge_noteAction.do?method=initBuildAnew"
		top.windowOpen(url,"buildAnew","${key.charge_note_main_build_rebuild}",230,350,true,"buildAnewFrame");
	}
	/**
	 * 重新生成--针对单条记录
	 */
	function openBuildAnewForOne(){
		if(currenNoteId == "" || currenNoteId == null){
			Alert("${key.tipsBySelect}");
			return;
		}
		var message = "${key.charge_note_main_build_affirm_before}" + currentHouseNumber + "${key.charge_note_main_build_affirm_after}?";
		AskConfirm(message,"main","buildAnewForOne");
	}
	/**
	 * 重新生成,针对单条记录
	 */
	function buildAnewForOne(){
		if(currentHouseId == null || currentHouseId == "") return;
		var url = "${ctx}/charge_noteAction.do?method=buildNotesAnewForOne";
		var params = "houseId=" + currentHouseId;
		sendAjaxRequest(url,params,function(result){
			currentHouseId = null;
			ajaxSubmitException(result.responseText);
			if(result.responseText == "true"){
				SuccessAlert("${key.charge_note_main_rebuild_sucess}！");
				flustList();
			}else if(result.responseText == "false"){
				FailureAlert("${key.charge_note_main_rebuild_faild}!");
			}
		});
	}

	/**
	 * 打印通知单(所有)
	 */
	function openPrintAll(aObj){

		if (totalRows > 500){
   			Alert("要打印数据的不能大于500条,请重新选择！");
   			return ;
   		}

		var parm = SearchObj.getSearchStr();
		var url = "${ctx}/applets/appletShow.jsp?reportName=printChargeNoteService&orderStr="+orderStr +  parm;
		aObj.href = url;
		aObj.target = "blank";
	}

	/**
	 *打印通知单(选择的)
	 */
	function printChooseNotes(aObj){
		aObj.href = "#";
		aObj.target = "";

		var noteIds = document.frames["noteIfm"].getNoteIds();
		if(noteIds == null || noteIds == ""){
			Alert("没有选择数据，请选择数据！");
			return ;
		}

		var parm ="&noteIds="+noteIds +"&orderStr="+orderStr;
		var url = "${ctx}/applets/appletShow.jsp?reportName=printChargeNoteService" +  parm;
		aObj.href = url;
		aObj.target = "blank";
	}

	/**
	 * 打印通知单(单条记录)
	 */
	function openPrintSingleton(aObj){

		aObj.href = "${ctx}/applets/appletShow.jsp?reportName=printChargeNoteService&noteId=" + currenNoteId+"&periodId="+currentPeriodId;
		aObj.target = "blank";
		aObj.click();
	}

	/**
	 * 打印走表数据明细(单条)
	 */
	function printMeterdatas(aObj){
		aObj.href = "${ctx}/applets/appletShow.jsp?reportName=meterDatasList&noteId=" + currenNoteId;
		aObj.target = "blank";
		aObj.click();
	}

/********************************************************************/

	function clearSearch(){
		$('noteSearchForm').reset();
		$('reminderSearchForm').reset();
	}

	/**
	 *  查询通知单方法
	 */
	function noteSearch(){
		var url = "${ctx}/charge_noteAction.do?method=list";
		 $('noteSearchForm').action = url;
		 $('noteSearchForm').submit();
	}

	/**
	 *  查询催缴单方法
	 */
	function reminderSearch(){
		var buildDate = $('buildDate').value;
		 $('reminderSearchForm').action = "${ctx}/charge_noteAction.do?method=reminderList&buildDate="+buildDate;
		 $('reminderSearchForm').submit();
	}


	/**
	 * 打印催缴单(所有)
	 */
	function printReminderAll(aObj){
   		if (totalRows > 500){
   			Alert("要打印数据的不能大于500条,请重新选择！");
   			return ;
   		}

		if(SearchObj.validity != null && SearchObj.validity != "" && SearchObj.validity == 0){
			Alert("${key.charge_note_main_print_tips}");
			return;
		}
		var buildDate = $('buildDate').value;
		var parm = SearchObj.getSearchStr();

		var url = "${ctx}/applets/appletShow.jsp?reportName=chargeReminderReport&buildDate="+buildDate+"&orderStr="+orderStr +parm;
		aObj.target = "blank";
		aObj.href = url;

	}

	/**
	 *打印催缴单(选择的)
	 */
	function printChooseReminders(aObj){
		aObj.href = "#";
		aObj.target = "";

		var noteIds = document.frames["noteIfm"].getRemindersIds();
		if(noteIds == null || noteIds == ""){
			Alert("没有选择数据，请选择数据！");
			return ;
		}

		var parm ="&noteIds="+noteIds +"&orderStr="+orderStr;
		var url = "${ctx}/applets/appletShow.jsp?reportName=chargeReminderReport" +  parm;
		aObj.href = url;
		aObj.target = "blank";
	}

	/**
	 * 打印催缴单(单条记录)
	 */
	function printReminderSingleton(aObj){
		aObj.href = "${ctx}/applets/appletShow.jsp?reportName=chargeReminderReport&noteId=" + currenNoteId+"&periodId="+currentPeriodId;
		aObj.target = "blank";
		aObj.click();
	}


	/**
	 *  生成催缴单
	 */
	function openBuildReminder(){
		AskConfirm("${key.charge_note_main_reminder}","main","buildReminder");
	}
	function buildReminder(){
		var url = "${ctx}/charge_noteAction.do?method=buildReminder";
		showLoading("正在生成...");//显示图片
		sendAjaxRequest(url,null,function(result){
			hiddenLoading();
			ajaxSubmitException(result.responseText);
			if(result.responseText == "true"){  //生成成功
				SuccessAlert("${key.charge_reminder_main_build_success}");
			}else if(result.responseText == "false"){ //生成失败
				Alert("${key.charge_reminder_main_build_faild}");
			}
			window.frames("noteIfm").location.href = "${ctx}/charge_noteAction.do?method=reminderList";
		});

	}

	function cleanAllNote(){
		$('buildingId1')[0].selected=true;
		$('houseName1').value="";
		$('isVirtualHouse1')[0].selected=true;
		$('periodId1')[0].selected=true;
		$('requisitionNum1').value="";
		$('validity')[0].selected=true;
		cleanAllValue();

	}

	function cleanAllReminder(){
		$('buildingId2')[0].selected=true;
		$('houseName2').value="";
		$('isVirtualHouse2')[0].selected=true;
		$('periodId2')[0].selected=true;
		$('requisitionNum2').value="";
		$('buildDate').value="";
		cleanAllValue();
	}

	function cleanAllValue(){
		currenNoteId = "";
		currentPeriodId = "";
		currentHouseNumber = "";
		currentHouseId = "";
		currentStatus = "";
		SearchObj.setSearch("","","","","","");
	}

	function reminderButtonState(showDiv){//改变打印 催缴单 按钮状态
		if (showDiv == 1){
			$('showRem_div').style.display = "block";
			$('hideRem_div').style.display = "none";
		}else{
			$('hideRem_div').style.display = "block";
			$('showRem_div').style.display = "none";
		}
	}

	function noteButtonState(showDiv){//改变打印 通知单 按钮状态
		if (showDiv == 1){
			$('showNote_div').style.display = "block";
			$('hideNote_div').style.display = "none";
		}else{
			$('hideNote_div').style.display = "block";
			$('showNote_div').style.display = "none";
		}
	}
/********************初始化方法*************************/

	function init(){
	}

	//通知单刷新
	function flustList(){
		window.frames("noteIfm").location.href = "${ctx}/charge_noteAction.do?method=list";
	}
/*****************私有方法*************************/
</script>
</head>

<body >
<div style="overflow:auto;">
<div class="pageNav_bg">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
		<td width="50" id="pageNav_leftimg"><img src="${ctx}/images/ico_charge_tzd.gif" width="46" height="47"/></td>
      	<td id="navWord"><span class="page_title">${key.charge_note_main_build}</span></td>
		<td class="pageNav_right">
			<a href="#" style="CURSOR: hand;" onFocus="this.blur()" onClick="showCycleForward()"><img src="${ctx}/images/charage_buzhou.gif" border="0"></a>&nbsp;&nbsp;
			<a href="javascript:showFull_in();"><img id="full_image"  src="${ctx}/images/ico_fullscreen.gif" border="0"/></a>
		</td>
    </tr>
  </table>
</div>

<!----------------------搜索1 开始------------------------->
 <div id="noteSearchDiv" style="display: none;">
	 <form  id="noteSearchForm" name="noteSearchForm"  method="post" action=""  target="noteIfm">
	 <table width="100%" border="0" cellspacing="0" cellpadding="0">
	    <tr>
	    <td>
	    <table width="100%" border="0" cellpadding="0" cellspacing="0"  >
	        <tr>
	        <td align="left" valign="middle" class="bg_search2">
		    <table border="0" align="left" cellpadding="0" cellspacing="1" id="search01" >
		         <tr><td class="td_search">${key.charge_note_main_buildding}：</td>
		             <td class="td_search">
	                   	<pms:unitedSelect
	                   		id="buildingId1"
	                   		name="buildingId"
	                   		optionLabel="name"
	                   		optionValue="keyword"
	                   		selectText="${key.pleaseSelect}"
	                   		dataList="${buildingList}"
	                   		style="width:90px;">
	                   	</pms:unitedSelect>
		              </td>
	                  <td class="td_search">${key.charge_note_main_houseNumber}：</td>
	                  <td class="td_search"><input id="houseName1" name="houseName" type="text" class="inputtext" size="16" maxlength="30"></td>
	                  <td class="grid align_left">${key.charge_note_main_houseType}：</td>
	                  <td class="td_search align_left">
		                  <select id="isVirtualHouse1" name="isVirtualHouse" style="width:110px;">
		                    <option  value="" >${key.pleaseSelect}</option>
		                    <option value="0">${key.charge_note_main_houseType_right}</option>
		                    <option value="1">${key.charge_note_main_houseType_manager}</option>
		                  </select>
	                  </td>
					  <td class="td_search">&nbsp;</td>
				 </tr>
				 <tr>
	             <td class="grid align_left">${key.charge_note_main_period}：</td>
	             <td class="td_search align_left">
	              	<pms:unitedSelect
	              		id="periodId1"
	              		name="periodId"
	              		optionLabel="period"
	              		optionValue="keyword"
	              		selectText="${key.pleaseSelect}"
	              		dataList="${periodList}"
	              		style="width:90px;">
	              	</pms:unitedSelect>
	             </td>
		  		 <td class="td_search">通知单号：</td>
	             <td class="td_search"><input id="requisitionNum1" name="requisitionNum" type="text" class="inputtext" size="16" maxlength="40"></td>
	             <td class="td_search">${key.charge_note_main_status}：</td>
	             <td class="td_search">
	             	<select id="validity" name="validity" style="width:110px;">
	                 <option value="">${key.pleaseSelect}</option>
	                 <option value="1">${key.charge_note_main_efficiency}</option>
	                 <option value="0">${key.charge_note_main_noteefficiency}</option>
	               </select>
	             </td>
			 	 <td class="td_search">
				 <table border="0" cellpadding="0" cellspacing="0" >
	                <tr><td class="buttonOffLeft" id="btn1_11"></td>
		                <td class="buttonOffMiddle"
		                	id="btn1_12"
		                	onblur="btn_change(1)"
		                	onclick="SearchObj.setSearch(buildingId.value,houseName.value,isVirtualHouse.value,
		                								 periodId.value,requisitionNum.value,validity.value);
		                			 noteSearch();"
		                	onMouseOver="btn_change_over(1)"
		                	onMouseOut="btn_change_out(1)">
		                	<img src="${ctx}/images/ico_searchico.gif" alt="" border="0" align="absmiddle">${key.search}
		                  </td>
		                <td class="buttonOffRight" id="btn1_13"></td>
	                </tr>
	             </table></td>
		         </tr>
		     </table>
	        </td>
	         </tr>
	     </table>
	     </tr>
	  </table>
	  </form>
  </div>

<!------------------------搜索2 开始------------------------>
 <div id="reminderSearchDiv" style="display: none;">
	 <form id="reminderSearchForm" name="reminderSearchForm" action="" method="post" target="noteIfm" class="required-validate">
	 <table width="100%" border="0" cellspacing="0" cellpadding="0" >
	    <tr>
	    <td><table width="100%" border="0" cellpadding="0" cellspacing="0"  >
	        <tr>
	        <td align="left" valign="middle" class="bg_search2">
		    <table border="0" align="left" cellpadding="0" cellspacing="1" id="search02" >
		         <tr><td class="td_search">${key.charge_note_main_buildding}：</td>
		             <td class="td_search">
	                   	<pms:unitedSelect
	                   		id="buildingId2"
	                   		name="buildingId"
	                   		optionLabel="name"
	                   		optionValue="keyword"
	                   		selectText="${key.pleaseSelect}"
	                   		dataList="${buildingList}"
	                   		style="width:90px;">
	                   	</pms:unitedSelect>
		              </td>
	                  <td class="td_search">${key.charge_note_main_houseNumber}：</td>
	                  <td class="td_search"><input id="houseName2" name="houseName" type="text" class="inputtext" size="16" maxlength="30"></td>
	                  <td class="grid align_left">${key.charge_note_main_houseType}：</td>
	                  <td class="td_search align_left">
		                  <select id="isVirtualHouse2" name="isVirtualHouse" style="width:110px;">
		                    <option value="">${key.pleaseSelect}</option>
		                    <option value="0">${key.charge_note_main_houseType_right}</option>
		                    <option value="1">${key.charge_note_main_houseType_manager}</option>
		                  </select>
	                  </td>
					  <td class="td_search">&nbsp;</td>
				 </tr>
				 <tr>
		             <td class="grid align_left">${key.charge_note_main_period}：</td>
		             <td class="td_search align_left">
		              	<pms:unitedSelect
		              		id="periodId2"
		              		name="periodId"
		              		optionLabel="period"
		              		optionValue="keyword"
		              		selectText="${key.pleaseSelect}"
		              		dataList="${periodList}"
		              		style="width:90px;">
		              	</pms:unitedSelect>
		             </td>
			  		 <td class="td_search">催缴单号：</td>
		             <td class="td_search"><input id="requisitionNum2" name="requisitionNum" type="text" class="inputtext" size="16" maxlength="40"></td>
		             <td class="td_search">生成日期：</td>
		             <td class="td_search">
		             	<input name="buildDate"  id="buildDate" type="text" class="validate-date"  value="" size="16"  afterInsert="buildDateSpan"/>
				        <img id="imgbuildDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20"><span id="buildDateSpan"></span></td>
				 	 <td class="td_search">
						 <table border="0" cellpadding="0" cellspacing="0" >
			                <tr><td class="buttonOffLeft" id="btn1_11"></td>
				                <td class="buttonOffMiddle"
				                	id="btn1_12"
				                	onblur="btn_change(1)"
				                	onclick="SearchObj.setSearch(buildingId.value,houseName.value,isVirtualHouse.value,
				                								 periodId.value,requisitionNum.value, '');
				                			 reminderSearch();"
				                	onMouseOver="btn_change_over(1)"
				                	onMouseOut="btn_change_out(1)">
				                	<img src="${ctx}/images/ico_searchico.gif" alt="" border="0" align="absmiddle">${key.search}</td>
				                <td class="buttonOffRight" id="btn1_13">&nbsp;</td>
		                	</tr>
		             	</table>
		             </td>
		         </tr>
		     </table></td>
	         </tr>
	     </table>
	     </tr>
	  </table>
	  </form>
  </div>

<!-----------------通知单功能 ------------------------>
<div  id="noteFunction"  style="display:none">
    <table border="0" cellpadding="0" cellspacing="0" id="ico1">
    	<tr>
	    	<td class="toolbarico">
				<div id="showNote_div" style="display: none;"><a href="#" onmouseover="showmenulist('quick_menumore',this)" onMouseOut="hidden2menu('quick_menumore')"> <img src="${ctx}/images/ico_printer1.gif" border="0" align="absbottom"/></a></div>
				<div id="hideNote_div" style="display: none;"><a href="#"> <img src="${ctx}/images/ico_printer.gif" border="0" align="absbottom"/></a></div>
			</td>
			<td class="toolbar_line">|</td>

	        <pms:AuthTag authName="charge_noteAction.do?method=buildNotes">
	        <td id="btn_shengcheng" class="toolbarico" onclick="openBuildNote();">
	            <a id="btn_shengcheng_a" href="#" onfocus="this.blur()">
	            <img src="${ctx}/images/ico_zdgl_dj.gif" alt="${key.charge_note_main_build}" width="16" height="16" border="0" align="absbottom"/>&nbsp;${key.charge_note_main_build_option}</a>
	        </td>
	        </pms:AuthTag>

	        <pms:AuthTag authName="charge_noteAction.do?method=buildNotesAnew">
	    	<td id="btn_chongxinshengcheng"  class="toolbarico"  onclick="openBuildAnew();">
	    		<a id="btn_chongxinshengcheng_a" href="#" onfocus="this.blur()">
	    		<img src="${ctx}/images/ico_charge_cxsc.gif" alt="重新生成" width="16" height="16" border="0" align="absbottom"/>&nbsp;${key.charge_note_main_rebuild}</a>
	        </td>
	        </pms:AuthTag>
		</tr>
   </table>
</div>


<!------------------ 催缴单功能 ------------------------->
<div  id="reminderFunction"  style="display:none">
    <table border="0" cellpadding="0" cellspacing="0" id="ico1">
    	<tr>
    		<td class="toolbarico">
				<div id="showRem_div" style="display: none;"><a href="#" onmouseover="showmenulist('quick_menumore_reminder',this)" onMouseOut="hidden2menu('quick_menumore_reminder')"> <img src="${ctx}/images/ico_printer1.gif" border="0" align="absbottom"/></a></div>
				<div id="hideRem_div" style="display: none;"><a href="#"> <img src="${ctx}/images/ico_printer.gif" border="0" align="absbottom"/></a></div>
			</td>

			<td class="toolbar_line">|</td>
	        <pms:AuthTag authName="charge_noteAction.do?method=buildReminder">
	        <td id="btn_shengcheng" class="toolbarico" onclick="openBuildReminder();">
	            <a id="btn_shengcheng_a" href="#" onfocus="this.blur()">
	            <img src="${ctx}/images/ico_zdgl_dj.gif" alt="${key.charge_note_main_build}" width="16" height="16" border="0" align="absbottom"/>&nbsp;${key.charge_note_main_build_option}</a>
	        </td>
	        </pms:AuthTag>

		</tr>
   </table>
</div>


	<pms:tabPanel  panelId="noteMain" iframeId="noteIfm" hasTop="false" defaultHeight="450px" >
	<pms:AuthTag authName="charge_noteAction.do?method=initList">
		 <pms:tab caption="收费通知单"
		    baseUrl="${ctx}/charge_noteAction.do?method=initList"
		    tabId="noteList"
			rightDiv="noteFunction"
		    defaultTab="true"
		    topDiv="noteSearchDiv"
		    beforeFunction="cleanAllNote();"/>
	</pms:AuthTag>
	<pms:AuthTag authName="charge_noteAction.do?method=initReminderList">
		 <pms:tab caption="催缴单"
		    baseUrl="${ctx}/charge_noteAction.do?method=initReminderList"
		    tabId="reminderList"
		    rightDiv="reminderFunction"
		    topDiv="reminderSearchDiv"
		    beforeFunction="cleanAllReminder();"/>
	</pms:AuthTag>
	</pms:tabPanel>
</div>

<!-- 通知单打印类型选择 -->
<div id="quick_menumore" class="quick_menu2">
      <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg" onMouseOver="showmy2menu('quick_menumore')" onMouseOut="hidden2menu('quick_menumore')">
        <tr>
          <td><table width="100%" border="0" cellpadding="1" cellspacing="0">

              <tr>
                <td class="quickMenu_toolbarico" id=""><a href="#" onClick="openPrintAll(this);" ><img id="addBankAccountImg" src="${ctx}/images/ico_printer.gif"  border="0" align="absbottom"/>&nbsp;按查询打印</a></td>
              </tr>
              <tr>
                <td class="quickMenu_toolbarico" id=""><a href="#" onClick="printChooseNotes(this);" ><img id="editBankAccountImg" src="${ctx}/images/ico_printer.gif"  border="0" align="absbottom"/>&nbsp;按选择打印</a></td>
              </tr>

                </table></td>
        </tr>
      </table>
</div>

<!-- 催缴单打印类型选择 -->
<div id="quick_menumore_reminder" class="quick_menu2" style="display: none">
      <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg" onMouseOver="showmy2menu('quick_menumore_reminder')" onMouseOut="hidden2menu('quick_menumore_reminder')">
        <tr>
          <td><table width="100%" border="0" cellpadding="1" cellspacing="0">

              <tr>
                <td class="quickMenu_toolbarico" id=""><a href="#" onClick="printReminderAll(this);" ><img id="" src="${ctx}/images/ico_printer.gif"  border="0" align="absbottom"/>&nbsp;按查询打印</a></td>
              </tr>
              <tr>
                <td class="quickMenu_toolbarico" id=""><a href="#" onClick="printChooseReminders(this);" ><img id="" src="${ctx}/images/ico_printer.gif"  border="0" align="absbottom"/>&nbsp;按选择打印</a></td>
              </tr>

                </table></td>
        </tr>
      </table>
</div>

<script type="text/javascript">
             Calendar.setup(
              {
	              inputField : "buildDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgbuildDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );

</script>

</body>
</html>
